#include "ubooksinfo.h"

UBooksInfo::UBooksInfo(const QString& isbn, const QString& title, const QString& author, const QString& press, const QString& date, const QString& image)
{
	m_title = title;
	m_author = author;
	m_press = press;
	m_isbn = isbn;
	m_date = date;
	m_image = image;
}

QDataStream& operator<<(QDataStream& out, const UBooksInfo& books)
{
	return out << books.m_isbn
		<< books.m_title
		<< books.m_author
		<< books.m_press
		<< books.m_date
		<< books.m_image;
}

QDataStream& operator>>(QDataStream& in, UBooksInfo& books)
{
	return in >> books.m_isbn
		>> books.m_title
		>> books.m_author
		>> books.m_press
		>> books.m_date
		>> books.m_image;
}

void UBooksInfo::setTitle(const QString& m_title)
{
}

void UBooksInfo::setAuthor(const QString& m_author)
{
}

void UBooksInfo::setPress(const QString& m_press)
{
}

void UBooksInfo::setIsbn(const QString& m_isbn)
{
}

void UBooksInfo::setDate(const QString& m_date)
{
}

void UBooksInfo::setImage(const QString& m_image)
{
}
